package com.zzyl.nursing.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.domain.NursingProjectPlan;
import com.zzyl.nursing.vo.NursingProjectPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 护理计划和项目关联Mapper接口
 *
 * @author ruoyi
 * @date 2025-10-17
 */
@Mapper
public interface NursingProjectPlanMapper extends BaseMapper<NursingProjectPlan> {
    /**
     * 查询护理计划和项目关联列表
     *
     * @param nursingProjectPlan 护理计划和项目关联
     * @return 护理计划和项目关联集合
     */
    List<NursingProjectPlan> selectNursingProjectPlanList(NursingProjectPlan nursingProjectPlan);

    /**
     * 批量保存护理计划和项目关联
     *
     * @param list   护理计划列表
     * @param planId 护理计划id
     * @return 批量保存结果
     */
    int batchInsert(@Param("list" ) List<NursingProjectPlan> list, @Param("planId" ) Long planId);

    /**
     * 根据计划id查询项目计划
     *
     * @param id 计划
     * @return id
     */
    List<NursingProjectPlanVo> selectByPlanId(Long id);
}
